home *** CD-ROM | disk | FTP | other *** search
/ Info-Mac 4 / Info_Mac IV CD-ROM (Pacific HiTech Inc.)(August 1994).iso / Science / RLaB / help / load < prev    next >
Text File  |  1994-04-25  |  938b  |  31 lines

  1. load:
  2.  
  3. Syntax:    load( "filename" )
  4.  
  5. Description:
  6.  
  7.     Load opens the file name denoted by string argument and reads
  8.     it's contents as though a user were typing the contents at the
  9.     command line. Thus a user can use load() to enter data,
  10.     user-functions, or execute repetitive commands saved in a
  11.     file. there is no limit to the number of functions, or regular
  12.     statements that can exist in a file called by load().
  13.  
  14.     Immediately after the the input is read, load() closes the
  15.     file, so that subsequent calls to load() will re-open the
  16.     file. 
  17.  
  18.     Load requires that a complete file specification be provided.
  19.     If the file is in the present working directory, then only the
  20.     filename is necessary otherwise, a complete path is required.
  21.  
  22.     In most cases the rfile command is simpler to use.
  23.  
  24.     Example:
  25.  
  26.     // load the roots() function into memory
  27.     > load( "roots.r" )
  28.  
  29.     Load can now be used from within functions, and loops.
  30.  
  31. See Also: FILES, rfile